<?php

class ErrorController extends Zend_Controller_Action
{
    public function errorAction()
    {
        $exception = $this->_getParam('error_handler')->exception;

        $this->view->isajax = $this->getRequest()->isXmlHttpRequest();
        $this->view->message = $exception->getMessage();

        if ($exception instanceof Zend_Controller_Exception){
            $this->view->message = 'Página no encontrada';
        }
    }
}



